package br.com.dubs.web.delegates;

import java.util.List;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import br.com.dubs.core.interfaces.ClientHandlerInterface;
import br.com.dubs.persistence.entities.ClientEntity;
import br.com.dubs.persistence.entities.Contact;

@Stateless
public class ClientDelegate {
	@EJB
	private ClientHandlerInterface clientHandler;

	public ClientEntity login(String user, String Password) {
		return clientHandler.login(user, Password);
	}

	public Boolean addToContacts(Contact contact, ClientEntity client) {
		return clientHandler.addToContacts(contact, client);
	}

	public List<ClientEntity> getClientList() {
		return clientHandler.getClientList();
	}
}
